home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / etc / acpi / asus-wireless-2.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  2009-10-13  |  332b  |  15 lines

  1. #!/bin/sh
  2.  
  3. . /usr/share/acpi-support/state-funcs
  4.  
  5. ON_VALUE="e"
  6. OFF_VALUE="f"
  7.  
  8. CHARACTER_POSITION="8"
  9.  
  10. HOTKEY_VALUE=`echo "$3"| cut -b "$CHARACTER_POSITION"`
  11.  
  12. if ( isAnyWirelessPoweredOn && [ "$HOTKEY_VALUE" =  "$OFF_VALUE" ] ) || ( ! isAnyWirelessPoweredOn && [ "$HOTKEY_VALUE" =  "$ON_VALUE" ] ) ; then
  13.     toggleAllWirelessStates
  14. fi
  15.